package com.hnmqet.demo01.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author td
 * @date 2020/1/7 15:08
 */
@FeignClient(value = "demo002")
public interface OrderClint {

    @RequestMapping("/insert")
    void insert(@RequestParam("userId") String userId, @RequestParam("code") String code, @RequestParam("count") String count);

    @RequestMapping("/batchUpdate")
    void batchUpdate();


    @RequestMapping("/insert/tcc")
    void tcc(@RequestParam("userId") String userId, @RequestParam("code") String code, @RequestParam("count") String count);
}

